<%@ include file="public/include.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <link type="text/css" rel="stylesheet" href="styles/pub/default.css">
  <link type="text/css" rel="stylesheet" href="scripts/validator3/validator.css"> 
  <script type="text/javascript" language="JavaScript" src="scripts/pub/jquery.js"></script>
  <script type="text/javascript" language="JavaScript" src="scripts/pub/validator3/validator.js"></script>
  <script type="text/javascript" language="JavaScript" src="scripts/pub/common.js"></script>
</head>
<body>
	<div class="main" style="width:60%;">
	<form id="MainForm" name="MainForm" action="EntUserEdit.do" method="post" >
		<table style="width:100%;">
			<caption>
				报检用户
			</caption>
			<tr><td>
				<table  class="bean">
					<tr class="size">
					  <td width="20%"></td>
					  <td ><span class="errorinfo"><c:if test="${map.user.errorInfo!=null}">${map.user.errorInfo}</c:if><span></td>
					  <td width="25%" align="right">带<span  class="warning" >*</span>项必填</td>
					</tr>
					<tr>
					  <td class="formLabel"><span class="warning">*</span>登录名</td>
					  <td><input type="text"  name="username" value="${map.user.username}"
					  	<c:if test="${map.user.id!=null}" >readOnly class="readonly textst"</c:if>
					  	<c:if test="${map.user.id==null}" >class="textst"</c:if>
					   DataType="Require" Message="用户名必填"></td>
					  <td></td>
					</tr>
					<tr>
					  <td class="formLabel"><span class="warning">*</span>报检单位全称</td>
					  <td><input type="text"  class="textst" name=entCname value="${map.user.entCname}" DataType="Require" Message="报检单位名必填"></td>
					  <td></td>
					</tr>
					<tr>
					  <td class="formLabel"><span class="warning">*</span>简称</td>
					  <td><input type="text"  class="textst" name="simpleName" value="${map.user.simpleName}" DataType="Require" Message="简称必填"></td>
					  <td></td>
					</tr>
					<tr>
					  <td class="formLabel"><span class="warning">*</span>报检单位注册号</td>
					  <td><input type="text"  class="textst" name="declRegNo" value="${map.user.declRegNo}" DataType="Require" Message="报检单位注册号必填"></td>
					  <td></td>
					</tr>
					<tr>
					  <td class="formLabel"><span class="warning">*</span>联系人</td>
					  <td><input type="text"  class="textst" name="contactor" value="${map.user.contactor}" DataType="Require" Message="联系人必填"></td>
					  <td></td>
					</tr>			
					<tr>
					  <td class="formLabel"><span class="warning">*</span>电子邮箱</td>
					  <td><input type="text"  class="textst" name="email" value="${map.user.email}" DataType="Require" Message="电子邮箱必填"></td>
					  <td></td>
					</tr>			
					<tr>
					  <td class="formLabel"><span class="warning">*</span>联系电话</td>
					  <td><input type="text"  class="textst" name="telephone" value="${map.user.telephone}" DataType="Require" Message="联系电话必填"></td>
					  <td></td>
					</tr>			
					<tr>
					  <td class="formLabel">传真</td>
					  <td><input type="text"  class="textst" name="fax" value="${map.user.fax}" ></td>
					  <td></td>
					</tr>			
					<tr>
					  <td class="formLabel">单位地址</td>
					  <td><input type="text"  class="textst" name="address" value="${map.user.address}" ></td>
					  <td></td>
					</tr>			
					<tr>
					  <td class="formLabel"><span class="warning">*</span>状态</td>
					  <td >
					  	<mytag:checkbox name="status" type="EntUserInfo_status" values="${map.user.status}" multiSelect="false" opeation="true"/>
					  </td>
					  <td></td>
					</tr>
					<c:if test="${map.user.id==null}" >
						<tr>
						  <td colspan="3" align="center">新注册用户密码统一为：1234</td>
						</tr>
					</c:if>
				</table>
			</td></tr>
			
			<tr class="button">
				  <td align="center">
				  	<div>
				  		<input type="hidden" value="${map.user.id}" name="id">
				  		<input type="hidden" value="${map.user.version}" name="version">
					    <input type="submit" value=" 提交 " id="submitButton" >
					    <input type="button" value=" 返回 " onClick="window.history.back();">
				  	</div>
				   </td>
				</tr>
		</table>
	</form>
	</div>
<script type="text/javascript">
 	$(document).ready(function(){
 		Validator.Setup({
			Name : "MainForm",
			ClickElement : "submitButton",
			DataSourceType : Validator.Enumerate.DataSourceType.Attribute,
			ValidateType : Validator.Enumerate.ValidateType.Click,
			AlertType : Validator.Enumerate.AlertType.SummarySingle
		});
 	});
 </script>
</body>
</html>
